
import { RouteRecordRaw } from 'vue-router';
// 菜单页面
export const menuRoutes: RouteRecordRaw[] = [
  {
    name: '首页',
    path: '/home',
    component: () => import("@/pages/Home/index.vue"),
  },
  {
    name: '关于',
    path: '/about',
    component: () => import("@/pages/About/index.vue"),
  },
]

export default [
  {
    name: '登录',
    path: '/login',
    component: () => import("@/pages/Login/index.vue"),
  },
  {
    name: '主体',
    path: '/main',
    component: () => import("@/pages/MainPage/index.vue"),
    children: [
      {
        name: '无权限',
        path: '/noAuth',
        component: () => import("@/pages/NoAuth/index.vue"),
      },
      ...menuRoutes
    ]
  },
];